package book;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class DetailServlet extends HttpServlet {

	public DetailServlet() {

	}

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

		String path = null;
		path = "/book/userBookDetails.jsp";

//		String indexId=(String)req.getAttribute("id");
//
//		BookBean books=(BookBean)TableManager.getRecord(TableManager.BOOKS_TABLE, indexId).getBean();
//
//
//
//		req.setAttribute("book",books);
//
//		System.out.println(books.toString());

		RequestDispatcher disp=req.getRequestDispatcher( path );
		disp.forward(req, resp);
	}


	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doGet(req, resp);
	}

}
